/**
 *
 */
package com.biotecan.genome.cytobandviewer.shape;

import java.awt.Color;

/**
 * @author SuFeng
 *
 */
public class CytobandColor {

    /**
     * gneg gpos25 gpos50 gpos75 gpos100 acen gvar stalk
     */
    public static final Color gneg = new Color(250, 240, 230);
    public static final Color gpos25 = new Color(221, 210, 180);
    public static final Color gpos50 = new Color(134, 186, 204);
    public static final Color gpos75 = new Color(199, 192, 113);
    public static final Color gpos100 = new Color(92, 92, 81);
    public static final Color acen = new Color(219, 98, 25);
    public static final Color gvar = new Color(241, 230, 200);
    public static final Color stalk = new Color(100, 127, 164);

    public static final Color SNP = new Color(240, 114, 108);

    public static final Color INDEL = new Color(5,131, 242);

    public static final Color CNV = new Color(134, 148, 205);

    public static final Color color = new Color(100, 100, 100);

    public static Color getColor(String cytoband_gieStain) {
        if (cytoband_gieStain.endsWith("gneg")) {
            return gneg;
        }
        if (cytoband_gieStain.endsWith("gpos25")) {
            return gpos25;
        }
        if (cytoband_gieStain.endsWith("gpos50")) {
            return gpos50;
        }
        if (cytoband_gieStain.endsWith("gpos75")) {
            return gpos75;
        }
        if (cytoband_gieStain.endsWith("gpos100")) {
            return gpos100;
        }
        if (cytoband_gieStain.endsWith("acen")) {
            return acen;
        }
        if (cytoband_gieStain.endsWith("gvar")) {
            return gvar;
        }
        if (cytoband_gieStain.endsWith("stalk")) {
            return stalk;
        }
        return color;
    }
}
